package com.patent.domain.po;

import java.util.Date;

public class PaidFee {
    private Integer id;

    private Integer patentId;

    private String type;

    private Integer amount;

    private Date paidDate;

    private String paidBy;

    private String receiptNo;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPatentId() {
        return patentId;
    }

    public void setPatentId(Integer patentId) {
        this.patentId = patentId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Date getPaidDate() {
        return paidDate;
    }

    public void setPaidDate(Date paidDate) {
        this.paidDate = paidDate;
    }

    public String getPaidBy() {
        return paidBy;
    }

    public void setPaidBy(String paidBy) {
        this.paidBy = paidBy == null ? null : paidBy.trim();
    }

    public String getReceiptNo() {
        return receiptNo;
    }

    public void setReceiptNo(String receiptNo) {
        this.receiptNo = receiptNo == null ? null : receiptNo.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PaidFee other = (PaidFee) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPatentId() == null ? other.getPatentId() == null : this.getPatentId().equals(other.getPatentId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getPaidDate() == null ? other.getPaidDate() == null : this.getPaidDate().equals(other.getPaidDate()))
            && (this.getPaidBy() == null ? other.getPaidBy() == null : this.getPaidBy().equals(other.getPaidBy()))
            && (this.getReceiptNo() == null ? other.getReceiptNo() == null : this.getReceiptNo().equals(other.getReceiptNo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPatentId() == null) ? 0 : getPatentId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getPaidDate() == null) ? 0 : getPaidDate().hashCode());
        result = prime * result + ((getPaidBy() == null) ? 0 : getPaidBy().hashCode());
        result = prime * result + ((getReceiptNo() == null) ? 0 : getReceiptNo().hashCode());
        return result;
    }
}